package com.ruiysoft.entity.aftersaleconf;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2018-11-24
 */
@TableName("aftersale_conf_spu_rela")
public class AftersaleConfSpuRela extends Model<AftersaleConfSpuRela> {

    private static final long serialVersionUID = 1L;

    /**
     * spuid
     */
    @TableId("spu_id")
    private Long spuId;

    /**
     * 商铺id
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 退换货设置id
     */
    @TableField("aftersale_conf_id")
    private Long aftersaleConfId;

    public Long getSpuId() {
        return spuId;
    }

    public AftersaleConfSpuRela setSpuId(Long spuId) {
        this.spuId = spuId;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public AftersaleConfSpuRela setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public Long getAftersaleConfId() {
        return aftersaleConfId;
    }

    public AftersaleConfSpuRela setAftersaleConfId(Long aftersaleConfId) {
        this.aftersaleConfId = aftersaleConfId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.spuId;
    }

    @Override
    public String toString() {
        return "AftersaleConfSpuRela{" +
        "spuId=" + spuId +
        ", shopId=" + shopId +
        ", aftersaleConfId=" + aftersaleConfId +
        "}";
    }
}
